export default {
  /**
   * 计划管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 04030001---计划列表
   * /maintain/maintainplan/list
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  planCode              计划编号
   * @param  {string}  planName              计划名称
   * @param  {string}  planType              计划类型
   *
   */
  "POST /maintain/maintainplan/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            planId:"1",
            planCode: "00232323",
            planName: "001",
            planType: "01",
            executeTime: 30,
            status: "01",
            planStatusName: "待执行",
            maintenanceName: "维保单位",
            maintainManName: "养护人",
          },
          {
            planId:"2",
            planCode: "00232323",
            planName: "001",
            planType: "01",
            executeTime: 30,
            status: "01",
            planStatusName: "待执行",
            maintenanceName: "维保单位",
            maintainManName: "养护人",
          }
        ]
      }
    });
  },


  /**
   * 04030002---新增计划
   * /maintain/maintainplan/save
   * @param  {string}  planName              计划名称
   * @param  {string}  planType              计划类型
   * @param  {string}  executeTime           执行周期
   * @param  {string}  startExecuteTime      开始执行时间
   * @param  {string}  stopExecuteTime       结束执行时间
   * @param  {number}  beginTime             开始时间
   * @param  {number}  endTime               结束时间
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  maintainManId         养护人
   * @param  {string}  remarks               备注
   * @param  {array}   devIds                养护点
   */
  "POST /maintain/maintainplan/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 04020003---修改计划
   * /maintain/maintainplan/update
   * @param  {string}  planName              计划名称
   * @param  {string}  planType              计划类型
   * @param  {string}  executeTime           执行周期
   * @param  {string}  startExecuteTime      开始执行时间
   * @param  {string}  stopExecuteTime       结束执行时间
   * @param  {number}  beginTime             开始时间
   * @param  {number}  endTime               结束时间
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  maintainManId         养护人
   * @param  {string}  remarks               备注
   * @param  {array}   devIds                养护点
   */
  "POST /maintain/maintainplan/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 04030004---计划信息批量导出
   * @param  {array}   planIds             计划ids，可传多个
   */
  "POST /04030004": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 04030005---计划信息（单个）批量中止
   * /maintain/maintainplan/stopPlans
   * @param  {array}  planIds             计划ids，可传多个
   */
  "POST /maintain/maintainplan/stopPlans": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 04030006---计划详情
   * /maintain/maintainplan/info/{planId}
   * @param  {string}  planId                计划id
   *
   */
  "POST /maintain/maintainplan/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        planId:"1",
        planCode: "00232323",
        planName: "001",
        planType:"02",
        executeTime: "5",
        startExecuteTime: "1,3",
        stopExecuteTime: "2,5",
        beginTime: 1515554892000,
        endTime: 1515554892000,
        maintenanceId: "1",
        maintenanceName :"养护单位",
        linkman:"联系人",
        remarks:"备注",
        creator:"创建人",
        maintainManId:"1",
        maintainManName:"养护人",
      }
    });
  },


  /**
   * 04030007---计划相关设备信息
   * /maintain/maintainplan/queryPlanDevs
   * @param  {string}  planId      计划id
   *
   */
  "POST /maintain/maintainplan/queryPlanDevs": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        list:[{
          devId: "001",
          devCode: "001",
          devName: "网络摄像头1",
          districtName: "滨江区",
          pointName: "具体点位",
        },{
          devId: "002",
          devCode: "002",
          devName: "网络摄像头2",
          districtName: "滨江区",
          pointName: "具体点位",
        },{
          devId: "003",
          devCode: "003",
          devName: "网络摄像头3",
          pointName: "具体点位3",
          districtName: "滨江区",
          signTime:1515554892000
        },]

      }
    });
  },


  /**
   * 04030008---计划信息（单个）批量删除
   * /maintain/maintainplan/delete
   * @param  {array}  planIds             计划ids，可传多个
   */
  "POST /maintain/maintainplan/delete": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



};
